import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/front/common/Main'
import Aamin from '@/admin/main'
Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '网站首页',
      component: Index,
      childern:[{
        	path: '/',
            component:require('@/front/Index')
        }]
    },
    {
      path: '/admin',
      name: '后台网站首页',
      component: Aamin,
      children:[
                {
                    path: '/',
                    component: resolve => require(['@/admin/advertising/List'], resolve)
                },{
                    path: '/columnList',
                    component: resolve => require(['@/admin/column/list'], resolve)
                }
             ]
    },
  ]
})
